const express = require('express')
const router = express.Router()
//router.[method]//get / post / put 等
//router.all()
//router.use()

router.get('/list', (req, res)=>{
	res.json({
		list: [
			{name: '张三', city: '城市'}
		]
	})
})

//此处可继续使用router.use()向下切割路由，继续嵌套子路由，但不建议这么做

module.exports = router